/*------------------------------------------------------
                hou_elearningGEN beta v1.0
Author: xtrung.net@gmail.com
Write On: 04/27/2008
Create On:4/13/2012 11:22:45 AM
------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace hou_elearning.Entity
{
    public class NhomnguoidungEntity
    {
        public NhomnguoidungEntity()
        {
			m_pk_inhomnguoidungid=0;
			m_stennhom="";
			m_sghichu="";
        }
		private Int16 m_pk_inhomnguoidungid;
		public Int16 PK_iNhomnguoidungID
		{
			get { return m_pk_inhomnguoidungid ; }
			set { m_pk_inhomnguoidungid = value; }
		}
		private String m_stennhom;
		public String sTennhom
		{
			get { return m_stennhom ; }
			set { m_stennhom = value; }
		}
        private String m_skyhieu;
        public String sKyhieu
        {
            get { return m_skyhieu; }
            set { m_skyhieu = value; }
        }
		private String m_sghichu;
		public String sGhichu
		{
			get { return m_sghichu ; }
			set { m_sghichu = value; }
		}

        #region Comparison
        public static List<NhomnguoidungEntity> Sort(List<NhomnguoidungEntity> list, String SortExpression, String SortDirection)
        {
            string strComparisonAttrb="COMPARISON_"+SortExpression;
            PropertyInfo propInfo= typeof(NhomnguoidungEntity).GetProperty(strComparisonAttrb);
            if (propInfo != null)
            {
                list.Sort(propInfo.GetGetMethod().Invoke(null,null) as Comparison<NhomnguoidungEntity>);
                if (SortDirection == "DESC")
                    list.Reverse();
            }
            return list;
        }
        
		public static Comparison<NhomnguoidungEntity> COMPARISON_PK_iNhomnguoidungID
		{
			get
			{
				return delegate(NhomnguoidungEntity entity,NhomnguoidungEntity other)
				{
					return entity.PK_iNhomnguoidungID.CompareTo(other.PK_iNhomnguoidungID);
				};
			}
		}
		public static Comparison<NhomnguoidungEntity> COMPARISON_sTennhom
		{
			get
			{
				return delegate(NhomnguoidungEntity entity,NhomnguoidungEntity other)
				{
					return entity.sTennhom.CompareTo(other.sTennhom);
				};
			}
		}
		public static Comparison<NhomnguoidungEntity> COMPARISON_sGhichu
		{
			get
			{
				return delegate(NhomnguoidungEntity entity,NhomnguoidungEntity other)
				{
					return entity.sGhichu.CompareTo(other.sGhichu);
				};
			}
		}
        #endregion
    }
}
